package face.pay.alipay.controller;


import face.pay.alipay.service.IAliPayService;
import face.pay.util.ResultMessage;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/alipay")
public class AliPayController {


    @Autowired
    private IAliPayService iAliPayService;


    /**
     * 发起支付
     *
     * @return
     */
    @RequestMapping("/jsPay")
    @ResponseBody
    public ResultMessage aliPay(String deviceId, String cpnId, String money, String act_money) {
        return this.iAliPayService.aliPay(deviceId, cpnId, money, act_money);
    }
}
